package com.zzh.tools.toast;

import android.text.TextUtils;
import android.widget.Toast;

import com.zzh.tools.ToolsConfig;


public class ToolsToast {

    public static void mustToast(String msg) {
        if (TextUtils.isEmpty(msg)) return;
        try {
            Toast.makeText(ToolsConfig.mContext, msg, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
        }
    }

    public static void toast(String msg) {
        if (!ToolsConfig.mNoticePrint) return;
        mustToast(msg);
    }

}
